package org.leo.flow.exception;

/**
 * 
 * Created on 2017年2月4日
 * <p>
 * Description 组件异常类
 * <p>
 * Copyright xxx (c) 2019 .
 * 
 * @author leo
 */
public class TransferException extends BaseException {
	private static final long serialVersionUID = 1L;

	public TransferException() {
	}

	private ExceptionEnums exceptionEnums;

	public TransferException(ExceptionEnums exceptionEnums) {
		super(exceptionEnums.toString());
		this.exceptionEnums = exceptionEnums;
	}

	public ExceptionEnums getExceptionEnums() {
		return exceptionEnums;
	}

	public TransferException(Throwable ex) {
		super(ex);
	}

	public TransferException(String message) {
		super(message);
	}

	public TransferException(String message, Throwable ex) {
		super(message, ex);
	}

	public static void out(Exception e) {
		e.printStackTrace();
	}
}
